<template>
  <div style="width: 800px; align-items: flex-start;">
    <TinymceEditor
      v-model="value"
    />
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import { ICellEditorParams } from 'ag-grid-community';

import TinymceEditor from '@/components/tinymce/index.vue';

const props = defineProps<{
  params: ICellEditorParams;
}>();

const value = ref(props.params.value);

function getValue() {
  return value.value;
}

defineExpose({
  getValue
});
</script>
